<head>
    <?php $this->load->view('load_view');?>
</head>
<?php
	$list=array(	array(
						  '1',
						  'The Zen of CSS Design',
						  'Mr.A',
						  '0',
						  'M',
						  'false'
						  ),
					array(
						  '1',
						  'javascript',
						  'Mr.B',
						  '1',
						  'D',
						  'true'
						  ),
					array(
						  '0',
						  'XHTML',
						  'Mr.C',
						  '1',
						  'P',
						  'true'
						  ),
					array(
						  '1',
						  'The Zen of CSS Design',
						  'Mr.A',
						  '1',
						  'M',
						  'true'
						  ),
					array(
						  '0',
						  'javascript',
						  'Mr.B',
						  '0',
						  'D',
						  'false'
						  ),
					array(
						  '0',
						  'XHTML',
						  'Mr.C',
						  '1',
						  'R',
						  'true'
						  ),
					array(
						  '0',
						  'The Zen of CSS Design',
						  'Mr.A',
						  '1',
						  'M',
						  'true'
						  )
				);
	?>
	
    <!--start activate-wrap-->
    <div class="list activate-wrap">
    	<div class="search">
            <form>
                <label>选择课业</label>
                <select><option>The Zen of CSS Design</option></select>
                <label>选择班级</label>
                <select><option>0722212</option></select>
                <input type="submit" class="submit" value="查询" />
            </form>
        </div>
        	<form>
    			<table cellpadding="1" class="sortTable" id="sortTable">
				<thead>
				<tr>
					<th><p>下载</p></th>
					<th><p>姓名</p></th>
					<th><p>本次作业成绩</p></th>
                    <th><p>是否更新作业</p></th>
                    <th><p>是否有留言</p></th>
				</tr>
			</thead>
			<tbody> 
           
		<?php 
			if(isset($_GET['year'])&&$_GET['year']=='2007'){
				$k=$list1;
			}elseif(isset($_GET['class'])&&$_GET['class']=='java'){
				$k=$list2;	
			}else{
				$k=$list;	
			}
			for($i=0;$i<count($k);$i++){
				?>
                <tr class="toggle">
               		<td><input class="checkbox" type="checkbox" new="<?php echo $k[$i][5]?>" value="<?php echo $i; ?>" /></td>
                    <td><a href="index.php?page=handin"><?php echo $k[$i][2]; ?></a></td>
                    <td class="score"><?php echo $k[$i][4]; ?></td>
                    <td><?php
							if($k[$i][3]==1){
								echo '<font color="red">是</font>';
							}else{
								echo '否';	
							}
							
							?></td>
                    <td><?php echo $k[$i][0]; ?></td>
                </tr>			
          <?php
			}
			?>
			</tbody>
		</table>
         <p class="control">
         <a id="selectAll" href="javascript:">全选</a>
         <a id="selectNew" href="javascript:">选择更新</a>
         <a id="selectNone" href="javascript:">不选</a>
         <input type="submit" class="submit" value="下载" />
         </p>
        
 		</form>
    </div>
    <!--end activate-wrap-->
    <script>
	$('ul.selectNav li').eq(0).addClass('current');
	</script>